package cn.lh.entity.req;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author linhong
 * @since 2025-04-14
 */
@Data
public class ProductReq {

    @ApiModelProperty("产品id 修改时不能为空")
    private Integer productId;

    @ApiModelProperty("产品名称")
    @NotEmpty(message = "产品名称不能为空")
    private String productName;

    @ApiModelProperty("产品类型id")
    @NotNull(message = "产品类型id不能为空")
    private Integer productTypeId;
}
